package ModelLayer;		//makes this class a part of the ModelLayer package
import java.io.Serializable;
//import java.io.*;

/**
 * Write a description of class Customer here.
 * 
 * @author (ucn-1semprojekt-dm78-gruppe1) 
 * 
 */
@SuppressWarnings("serial")
public class Customer extends Person implements Serializable
{
    private int craftsmanDiscount;
    
    /**
     * Constructor for objects of class Customer
     */
    public Customer(String name, String address, String postal, String city, String phone, String email, int craftsmanDiscount)
    {
        super(name, address, postal, city, phone, email);
        this.craftsmanDiscount = craftsmanDiscount;
    }
    
    /**
     * Set the craftsman of a Customer
     * 
     * @param craftsman
     */
    public void setCraftsmanDiscount(int craftsmanDiscount)
    {
        this.craftsmanDiscount = craftsmanDiscount;
    }
    
    /**
     * Get the craftsman of a Customer
     * 
     * @return craftsman
     */
    public int getCraftsmanDiscount()
    {
        return craftsmanDiscount;
    }
}
